﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace NG
{
    class SubIndustry
    {
        private int mindustry;
        private int msubIndustry;
        private string msubIndustryName;
        private string msubIndustryDesc;
        private string msubIndustryExtCode;


        public SubIndustry(SubIndustry subIndustry)
        {
            mindustry = subIndustry.mindustry;
            msubIndustry = subIndustry.subIndustry;
            msubIndustryName = subIndustry.msubIndustryName;
            msubIndustryDesc = subIndustry.msubIndustryDesc;
            msubIndustryExtCode = subIndustry.msubIndustryExtCode;
        }
        public SubIndustry(int industry, int subIndustry, string subIndustryName, string subIndustryDesc, string subIndustryExtCode)
        {
            mindustry = industry;
            msubIndustry = subIndustry;
            msubIndustryName = subIndustryName;
            msubIndustryDesc = subIndustryDesc;
            msubIndustryExtCode = subIndustryExtCode;
        }

        public int industry
        {
            get
            {
                return mindustry;
            }
            set
            {
                mindustry = value;
            }
        }

        public int subIndustry
        {
            get
            {
                return msubIndustry;
            }
            set
            {
                msubIndustry = value;
            }
        }

        public string subIndustryName
        {
            get
            {
                return msubIndustryName;
            }
            set
            {
                msubIndustryName = subIndustryName;

            }
        }
        public string subIndustyDesc
        {
            get
            {
                return msubIndustryDesc;
            }
            set
            {
                msubIndustryDesc = value;
            }
        }

        public string subIndustyExtCode
        {
            get
            {
                return msubIndustryExtCode;
            }
            set
            {
                msubIndustryExtCode = value;
            }
        }

        public override string ToString()
        {
            return msubIndustry + ":" + msubIndustryName ;
        }
 
    }
}
